import Vue from "vue";
import Vuex from "vuex";
import user from "./modules/user";
import permission from "./modules/permission";

Vue.use(Vuex);
const store = new Vuex.Store({
  modules: { user, permission },
});
// 刷新动态路由
store.dispatch("permission/generateRoutes");
export default store;
